﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using NovoSerDes.A2B.UIPages;
using Sunny.UI;

namespace NovoSerDes.A2B.MainForm
{
    public partial class A2B_MainForm : UIForm
    {
        public A2B_MainForm()
        {
            InitializeComponent();

            int pageIndex = 1000;
            //设置uiNavBar1设置节点，也可以在Nodes属性里配置
            uiNavBar1.Nodes.Add("Config");
            

            uiNavBar1.SetNodePageIndex(uiNavBar1.Nodes[0], pageIndex);
            uiNavBar1.SetNodeSymbol(uiNavBar1.Nodes[0], 61451, 24, pageIndex);

            //TreeNode parent = uiNavMenu1.CreateNode("Main", 61451, 24, pageIndex);
            TreeNode parent = uiNavMenu1.CreateNode("Config", pageIndex);
            parent.ImageIndex = 0;

            uiNavMenu1.CreateChildNode(parent, AddPage(new Configuration(), ++pageIndex));
        }

        private void uiImageButton2_Click(object sender, EventArgs e)
        {

        }
    }
}
